Returns the minute of the hour that corresponds to the serial time value that is generated by the TimeSerial or the TimeValue function.
TimeSerial ないし TimeValue 関数による時刻データのシリアル変換値を基に、該当時刻の分を示す数値を返します。
Minute (Number)
Minute (Number)
Integer
整数
Number: Numeric expression that contains the serial time value that is used to return the minute value.
Number: 分情報を返すために使われる時刻データのシリアル変換値を示す数値表式。
This function is the opposite of the TimeSerial function. It returns the minute of the serial time value that is generated by the TimeSerial or the TimeValue function. For example, the expression:
この関数は、TimeSerial 関数と逆方向の機能を担っています。この場合の戻り値としては、時刻データを TimeSerial や TimeValue 関数で変換したシリアル値を基に、該当時刻の分を示す整数値が返されます。こうした点は、下記のコードを実行してみると分かりやすいでしょう。
Print Minute(TimeSerial(12,30,41))
Print Minute(TimeSerial(12,30,41))
returns the value 30.
この場合の戻り値は 30 となります。
Sub ExampleMinute
Sub ExampleMinute
MsgBox "The current minute is "& Minute(Now)& "."
MsgBox "The current minute is "& Minute(Now)& "."
end sub
end sub